<template>
	<view>
		<z-paging ref="paging" auto-show-back-to-top v-model="dataList" @query="queryList" loading-more-no-more-text="暂无更多">
			<empty-view slot="empty">
				<no-data customClass="bg-f5"></no-data>
			</empty-view>
			<view>
				<view class="u-p-l-28 u-p-r-28" v-for="(item,index) in dataList" :key="item.id">
					<get-card :item="item"></get-card>
				</view>
			</view>
		</z-paging>
	</view>
</template>

<script>
	import getCard from '@/pagesMy/components/getCard/getCard.vue'
	import noData from '@/components/noData/noData.vue'
	import {
		myAdoptApply
	} from '@/api/user'
	export default {
		components: {
			getCard,
			noData
		},
		data() {
			return {
				dataList: [],
			}
		},
		
		methods: {
			async queryList(page, pageSize) {
				const res = await myAdoptApply({
					page,
					pageSize,
				});
				this.$refs.paging.complete(res.data.list);
			}
		}

	}
</script>
